package com.hula.onion.book.server.dao;

import com.hula.onion.book.server.model.AccountInfo;
import com.hula.onion.book.server.vo.AccountInfoVo;

import java.util.List;

/**
 * Created by work on 2018/1/29.
 */
public interface IAccountInfoDao {
    boolean updatePlatformAccount(int userId, int platformId, AccountInfo accountInfo);

    boolean createPlatformAccount(int userId, int platformId, int syncType, AccountInfo accountInfo);

    List<AccountInfoVo> getUserAccounts(int userId);

    AccountInfo getUserPlatformAccount(int investId);

    AccountInfo queryByUserIdAndPlatformId(int userId, int platformId);

    int delUserPlatformAccountById(int id);

    boolean haveRecord(int userId, int platformId);
}
